home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0793july.archive / 000113_crash!cup.port….com!Politikill_Fri, 30 Jul 93 13:56:33 PST.msg < prev    next >
Internet Message Format  |  1994-05-26  |  2KB

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Fri, 30 Jul 93 13:56:33 PST
  3. Received: from nova.unix.portal.com by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oLzoB-0000Z6C; Fri, 30 Jul 93 12:08 PDT
  5. Received: by nova.unix.portal.com (5.65b/4.1 1.386) 
  6.     id AA22646; Fri, 30 Jul 93 12:11:59 -0700
  7. Received: from hobo  by portal.unix.portal.com (1.689) 
  8.     id AA29900; Fri, 30 Jul 93 12:11:58 -0700
  9. Received: by hobo.corp.portal.com (4.1/4.0.3 1.68) 
  10.     id AA23358; Fri, 30 Jul 93 12:11:56 PDT
  11. Return-Path: <Politikill@cup.portal.com>
  12. Lines: 44
  13. Date: Fri, 30 Jul 93 12:11:55 PDT
  14. Message-Id: <9307301211.3.12188@cup.portal.com>
  15. X-Origin: The Portal System (TM)
  16. From: Politikill@cup.portal.com
  17. To: AmigaE@bkhouse.cts.com
  18. Subject: Re: MidStr
  19.  
  20. >Check that you have got the parameters to InStr the right
  21. >way round - all languages order these things differently
  22. >and I can never remember which way round they go.
  23. >
  24. >Next insert a WriteF('\d\n',endpos) after the endpos
  25. >assignment. If there is no \n in the buffer, endpos-pos
  26. >will be a negative number and could cause MidStr to return
  27. >all the characters it finds.
  28. >
  29. >Also check that the parameters to MidStr are right. I once
  30. >got the parameters to StrCpy the wrong way round - I
  31. >thought it would be (source,dest) but it isn't. Took me
  32. >the best part of a day to figure that bug out.
  33. >
  34. >Some E string functions require you to use E strings -
  35. >i.e. declare them as s[80]:STRING or something like that.
  36. >I would guess that this is the most likely problem.
  37. >Remember that if you do DEF a,b:STRING then a is a LONG
  38. >and b is a STRING. A similar statement in Pascal would
  39. >make both variables strings - that's a feature of E which
  40. >has caught me out many a time.
  41. >
  42. >Hope this helps :-)
  43. >
  44. >Dave.
  45.  
  46.  
  47.     Thanx....I di finally get this about 10 minutes after the mail went out:-)
  48. I stared REAL hard at it, and finally said "Well, if StringF needs it, might
  49. as well try definging them as strings for MidStr()..."   Now I am having
  50. problems somewhere in my saving routines....gotta go stare at that now!
  51.  
  52.  / / /
  53. /_/_/iZ
  54.  
  55. MODULE 'WiZkId'
  56. PROC main()
  57.   wizkid.inetaddress:='Politkill@cup.portal.com'
  58.   wizkid.realname:='Jeffrey J Peden ]['
  59. ENDPROC
  60.  
  61.  
  62. *-- GammaTag Version 2.8 --*
  63. *-- Morality is a private and costly luxury.